package org.electrical.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class EleLoss implements Serializable {

    private Integer lossId;
    private String customerId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date lastTime;
    private String measures;
    private String reason;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date confirmLoss;

    private EleCustomer eleCustomer;
    private EleDictionary eleDictionary;
    private EleUser eleUser;

    public EleDictionary getEleDictionary() {
        return eleDictionary;
    }

    public void setEleDictionary(EleDictionary eleDictionary) {
        this.eleDictionary = eleDictionary;
    }

    public EleUser getEleUser() {
        return eleUser;
    }

    public void setEleUser(EleUser eleUser) {
        this.eleUser = eleUser;
    }

    public EleCustomer getEleCustomer() {
        return eleCustomer;
    }

    public void setEleCustomer(EleCustomer eleCustomer) {
        this.eleCustomer = eleCustomer;
    }

    public Integer getLossId() {
        return lossId;
    }

    public void setLossId(Integer lossId) {
        this.lossId = lossId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getMeasures() {
        return measures;
    }

    public void setMeasures(String measures) {
        this.measures = measures;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date getConfirmLoss() {
        return confirmLoss;
    }

    public void setConfirmLoss(Date confirmLoss) {
        this.confirmLoss = confirmLoss;
    }

}
